
//1.if语句
//2.do-while
//3.while
//4.for循环
function forFunc1 () {
    let count = 10;
    for (let i = 0; i < count; i++) {
        console.log(i);
    }
}

function forFunc2 () {
    var list = ['xing', 'wei', 'xin'];
    for (const name in list) {
        console.log(name);  // 0 1 2
    }
    for (const iterator of list) {
        console.log('bb' + iterator);  // xing wei xin
    }
}
forFunc1();
forFunc2();

//5.标签语句

//6.break和continue

//7.with  影响性能,不利于调试.不推荐使用

//8.switch语句

